package com.example.demoweb1.demowed;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RequestMapping("/hello")
public class HelloController {
    @GetMapping
    public String hello(){
        return "index";
    }
}
/*@Controller
public class HelloController{
    @GetMapping("/test")
    public String test1(Model model){
        model.addAttribute("message","欢迎使用Thymeleaf！！！");
        return "test1";
    }

}*/
